import studentsRoutes from "../../router/studentsRoutes";

interface APIProps {
  code: number;
  msg: string;
  data?: any;
}
interface LoginProps {
  phone: string;
  pwd: string;
}
// 学生登录
export const studentLoginApi = ({ phone, pwd }: LoginProps) =>
  new Promise<APIProps>((resolve) => {
    console.log("接收到请求：", phone, pwd);

    resolve({
      code: 200,
      msg: "ok",
      data: {
        id: 1,
        nickname: "李雷",
        avatar: "http://www.img.com",
        baiJieClassId: "百杰304",
        token: "kjaxbbxa",
        roleList: studentsRoutes,
      },
    });
  });
